import request from '@/utils/request'

// 查询用户提现申请列表
export function listUserApplyWithdraw(query) {
  return request({
    url: '/system/userApplyWithdraw/list',
    method: 'get',
    params: query
  })
}

// 查询用户提现申请详细
export function getUserApplyWithdraw(id) {
  return request({
    url: '/system/userApplyWithdraw/' + id,
    method: 'get'
  })
}

// 新增用户提现申请
export function addUserApplyWithdraw(data) {
  return request({
    url: '/system/userApplyWithdraw',
    method: 'post',
    data: data
  })
}

// 修改用户提现申请
export function updateUserApplyWithdraw(data) {
  return request({
    url: '/system/userApplyWithdraw',
    method: 'put',
    data: data
  })
}

// 删除用户提现申请
export function delUserApplyWithdraw(id) {
  return request({
    url: '/system/userApplyWithdraw/' + id,
    method: 'delete'
  })
}

// 导出用户提现申请
export function exportUserApplyWithdraw(query) {
  return request({
    url: '/system/userApplyWithdraw/export',
    method: 'get',
    params: query
  })
}